package com.cskaoyan.order.controller;

import com.cskaoyan.mall.commons.result.ServiceCallResponse;
import com.cskaoyan.order.service.PayOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName:PayOrderController
 * @Auther: HeXianZu
 * @Description:
 * @Date: 2022/10/31 21:13
 */
@RestController
public class PayOrderController {

    @Autowired
    PayOrderService payOrderService;

    @PutMapping(value = "/rpc/pay/success")
    public ServiceCallResponse payOrderSuccess(@RequestParam("orderId") String orderId){
        return payOrderService.payOrderSuccess(orderId);
    }

}
